package com.china08.yxyapi.entity.db.continuedu;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 任务通知
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_continuedu_task", catalog = "yxy_continuedu")
public class YxyContinueduTask extends BaseEntity {

    @Column(columnDefinition = "varchar(256) comment '课程名称' ", nullable = false)
    private String name;// 课程名称

    @Column(columnDefinition = "int comment '分数' ", nullable = false)
    private Integer score;// 分数

    @Column(columnDefinition = "date comment '开始时间' ", nullable = false)
    private Date beginDate;

    @Column(columnDefinition = "date comment '结束时间' ", nullable = false)
    private Date endDate;

    @Column(columnDefinition = "varchar(32) comment '创建人学校id(教育局)' ", nullable = false)
    private String schoolId;// 创建人学校id(教育局)

    @Column(columnDefinition = "varchar(6) comment '省代码' ", nullable = false)
    private String areaCodeProvince;

    @Column(columnDefinition = "varchar(6) comment '市代码' ", nullable = false)
    private String areaCodeCity;

    @Column(columnDefinition = "varchar(6) comment '区县代码' ", nullable = false)
    private String areaCodeDistrict;

    @Column(columnDefinition = "bigint default 0 comment '报名的人数' ")
    private Long applyCount = 0l;

    @Column(columnDefinition = "bigint default 0 comment '结业人数' ")
    private Long completeCount = 0l;

    @Column(columnDefinition = "double default 0.0 comment '结业率' ")
    private Double completeRate = 0.0;

    @Column(columnDefinition = "int  default 0 comment '0:-进行中,-1:-未开始,1:-已截止' ")
    private Integer status = -1;// 0:-进行中,-1:-未完成,1:-已完成

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getAreaCodeProvince() {
        return areaCodeProvince;
    }

    public void setAreaCodeProvince(String areaCodeProvince) {
        this.areaCodeProvince = areaCodeProvince;
    }

    public String getAreaCodeCity() {
        return areaCodeCity;
    }

    public void setAreaCodeCity(String areaCodeCity) {
        this.areaCodeCity = areaCodeCity;
    }

    public String getAreaCodeDistrict() {
        return areaCodeDistrict;
    }

    public void setAreaCodeDistrict(String areaCodeDistrict) {
        this.areaCodeDistrict = areaCodeDistrict;
    }

    public Long getApplyCount() {
        return applyCount;
    }

    public void setApplyCount(Long applyCount) {
        this.applyCount = applyCount;
    }

    public Long getCompleteCount() {
        return completeCount;
    }

    public void setCompleteCount(Long completeCount) {
        this.completeCount = completeCount;
    }

    public Double getCompleteRate() {
        return completeRate;
    }

    public void setCompleteRate(Double completeRate) {
        this.completeRate = completeRate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

}
